﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MapAndCharacter_Filip
{
    public partial class ChooseAttributeForm : Form
    {

        public int attribute { get; set; }

        public ChooseAttributeForm()
        {
            InitializeComponent();
            attribute = 0;
            okBT.DialogResult = DialogResult.OK;
            cancelBT.DialogResult = DialogResult.Cancel;
        }

        private void okBT_Click(object sender, EventArgs e)
        {

            if (strRB.Checked)
                attribute = 0;
            else if (dexRB.Checked)
                attribute = 1;
            else if (conRB.Checked)
                attribute = 2;
            else if (intRB.Checked)
                attribute = 3;
            else if (wisRB.Checked)
                attribute = 4;
            else if (charRB.Checked)
                attribute = 5;
            else
                MessageBox.Show("Please select an attribute.");



            this.Close();

        }

        private void cancelBT_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
